import styled from 'styled-components'
import user from '../../assets/images/user.png'

export const HeaderInner = styled.div`
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 48px;
  background-color: #fff;
  padding: 0 24px;
  line-height: 48px;
  box-shadow: 0 1px 4px rgb(0 21 41 / 8%);
  > .right {
    > .user-info {
      display: flex;
      align-items: center;
      padding-right: 24px;
      cursor: pointer;
      .avatar {
        display: inline-block;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid lightblue;
        background: transparent url(${user}) center;
        background-size: 100% 100%;
      }
      .username {
        margin-left: 10px;
        font-size: 13px;
      }
    }
  }
`

export const List = styled.ul`
  padding: 10px 0;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 8%), 0 9px 28px 0 rgb(0 0 0 / 5%),
    0 12px 48px 16px rgb(0 0 0 / 3%);
  > li {
    min-width: 130px;
    white-space: nowrap;
    padding: 5px 10px;
    cursor: pointer;
    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
    > span {
      margin-left: 7px;
    }
  }
`
